using System;
using System.Collections.Generic;
using Dict.DataModel;

namespace Dict.Dao
{
    public class TableTreasureChestDao:DaoBase<TableTreasureChest>
    {
        public override void AddPrimaryIndex(TableTreasureChest model)
        {
            cachePrimary[model.levelRange.ToString()] = model;
        }

        public override string GetFileName()
        {
            return "TableTreasureChest.txt";
        }

        protected override TableTreasureChest ParseRowData(string[] rowData)
        {
            TableTreasureChest data = new TableTreasureChest();
			data.levelRange = rowData [0];
			data.firstReward = rowData [1];
			data.secondReward = rowData [2];
			data.thirdReward = rowData [3];

            return data;
        }



    }

}
